<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<c:set var="path" value="${pageContext.request.contextPath }"/>
<!DOCTYPE html>
<html>
  <head>
  	<meta charset="UTF-8">
    <title>Bootstrap 101 Template</title>
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <!-- Bootstrap -->
    <link href="${path }/static/css/bootstrap.min.css" rel="stylesheet" media="screen">
    <style type="text/css">
    body{background:#c9daf8;}
    </style>
  </head>
  <body>
    <div class="container-fluid">
	<div class="row-fluid">
		<div class="span12">
			<a href="${path }/ToTJ"><button class="btn" type="button" >添加</button></a>
			 <a href="${path }/text"><button class="btn" type="button">返回首页</button></a>
			<form class="form-search" action="${path }/DoLikeMember">
				<input class="input-medium search-query" type="text" name="text" /> <button type="submit" class="btn">查找</button>
			</form>
			<table class="table">
				<thead>
					<tr>
						<th>
							id
						</th>
						<th>
							姓名
						</th>
						<th>
							关系
						</th>
						<th>
							家庭
						</th>
						<th>
							删除
						</th>
						<th>
							修改
						</th>
					</tr>
				</thead>
				<tbody>
					<c:forEach items="${list }" var="ms">
							<tr>
								<td>${ms.id }</td>
								<td>${ms.name }</td>
								<td>${ms.relation}</td>
								<td>${ms.family }</td>
								<td><a href="${path }/DoDeleteMember?id=${ms.id }">删除</a></td>
								<td><a href="${path }/Toupdatemember?id=${ms.id}&name=${ms.name}&family=${ms.family}">修改</a></td>
							</tr>
						</c:forEach>
				</tbody>
			</table>
		</div>
	</div>
</div>
 
    <script src="${path }/static/js/jquery.min.js"></script>
    <script src="${path }/static/js/bootstrap.min.js"></script>
  </body>
</html>